package com.dcd.service.impl;

import com.dcd.mapper.SalesMapper;
import com.dcd.pojo.Sales;
import com.dcd.service.SalesService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
@Service
public class SalesServiceImpl implements SalesService {
    @Autowired
    private SalesMapper sm;

    /**
     * 查询近期前五个的日期
     * @return
     */
    @Override
    public List<Sales> timeAll() {
        return sm.timeAll();
    }

    /**
     * 支付宝支付成功修改销量
     * @param sales_car_series_fk_id   车系id
     * @return
     */
    @Override
    public int paySales(Integer sales_car_series_fk_id) {
        return sm.paySales(sales_car_series_fk_id);
    }
}
